package com.wgl.express.mapper;

import com.wgl.express.entity.Package;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PackageMapper {
    public List<Package> selectByfromPhone(@Param("fromphone") String fromphone);
    public List<Package> selectBytoPhone(@Param("tophone") String tophone);
    public List<Package> selectByPhone(@Param("phone") String phone);
    public List<Package> selectByStatus(@Param("status") int status,@Param("begin")int begin,@Param("end") int end);
    public List<Package> selectByStatusAndPost(@Param("status") int status,@Param("begin")int begin,@Param("end") int end,@Param("uid")int uid);
    public List<Package> selectByPid(@Param("pid") int pid);
    public int insertPack( Package pack);
    public int updatePackWithoutPickcode( Package pack);
    public int updatePickcode( Package pack);
    public int getCount(@Param("status") int status);
    public int getCountWithUid(@Param("status") int status,@Param("uid")int uid);
}
